package com.system.runtai.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableName;
import com.system.model.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 需求专区动态
 * </p>
 *
 * @author runtai
 * @since 2024-03-29
 */
@Data
@ApiModel(description = "需求专区动态")
@TableName("need")
//@EqualsAndHashCode(callSuper = false)
public class Need extends BaseEntity {

    private static final long serialVersionUID = 1L;

//    /**
//     * 主键
//     */
//      @TableId(value = "id", type = IdType.AUTO)
//    private Integer id;

    @ApiModelProperty(value = "用户id")
    @TableField("applet_user_id")
    private Integer appletUserId;

    /**
     * 昵称
     */
    @ApiModelProperty(value = "昵称")
    @TableField("nick_name")
    private String nickName;

    /**
     * 头像
     */
    @ApiModelProperty(value = "头像")
    @TableField("avatar")
    private String avatar;

    /**
     * 所属公司
     */
    @ApiModelProperty(value = "所属公司")
    @TableField("company")
    private String company;

    /**
     * 文案
     */
    @ApiModelProperty(value = "文案")
    @TableField("intro")
    private String intro;

    /**
     * 车辆图片
     */
    @ApiModelProperty(value = "车辆图片")
    @TableField("picture")
    private String picture;

    /**
     * 发布地址
     */
    @ApiModelProperty(value = "发布地址")
    @TableField("address")
    private String address;

    /**
     * 0：已提交，1：已完成
     */
    @ApiModelProperty(value = "0：已提交，1：已完成")
    @TableField("start")
    private Integer start;

    /**
     * 为默认值2
     */
    @ApiModelProperty(value = "为默认值2")
    @TableField("comment")
    private Integer comment;

    /**
     * 评论数量
     */
    @ApiModelProperty(value = "评论数量")
    @TableField("comment_num")
    private Integer commentNum;

    /**
     * 点赞数量
     */
    @ApiModelProperty(value = "点赞数量")
    @TableField("upvote_num")
    private Integer upvoteNum;

    /**
     * 分享数量
     */
    @ApiModelProperty(value = "分享数量")
    @TableField("share_num")
    private Integer shareNum;

    /**
     * 收藏数量
     */
    @ApiModelProperty(value = "收藏数量")
    @TableField("collect_num")
    private Integer collectNum;


    @TableField(exist = false)
    private List<NeedDiscuss> discussList;

    @TableField(exist = false)
    private List<Upvote> upvoteList;

    @ApiModelProperty(value = "浏览数量")
    @TableField("number")
    private Integer number;

    /**
     * 是否为广告贴0：默认，1广告贴
     */
    @ApiModelProperty(value = "是否为广告贴0：默认，1广告贴")
    @TableField("advertising")
    private Integer advertising;


    /**
     * 点赞
     */
    @TableField(exist = false)
    private Integer like;

    /**
     * 收藏
     */
    @TableField(exist = false)
    private Integer collect;

//    /**
//     * 创建时间
//     */
//    private LocalDateTime createTime;
//
//    /**
//     * 更新时间
//     */
//    private LocalDateTime updateTime;


}
